//将用户所有的完整路由定义在此处
//除了等入和404以外的页面 需要进行鉴权才能访问
const allRoutes = [{
        path: "attendance",
        component: () =>
            import ("../views/Attendance"),
        name: "attendance",
        meta: { //路由原信息 一个对象
            icon: "iconfont icon-kaoqin", //阿里图标的类名
            fullPath: "/Attendance", //完整路由
            name: '考勤管理',
        }
    },
    {
        path: "Welcome",
        component: () =>
            import ("../views/Welcome"),
        name: "Welcome",
        meta: {
            icon: "iconfont icon-index",
            fullPath: "/Welcome",
            name: '管理首页',
        }
    },
    {
        path: "Users",
        component: () =>
            import ("../views/Users"),
        name: "Users",
        meta: {
            icon: "iconfont icon-yonghuguanli",
            fullPath: "/Users",
            name: '用户管理',
        }
    },
    {
        path: "Statistics",
        component: () =>
            import ("../views/Statistics"),
        name: "Statistics",
        meta: {
            icon: "iconfont icon-tongji",
            fullPath: "/Statistics",
            name: '数据统计',
        }
    },
    {
        path: "Mine",
        component: () =>
            import ("../views/Mine"),
        name: "Mine",
        meta: {
            icon: "iconfont icon-wodezhongxin",
            fullPath: "/Mine",
            name: '我的中心',
        }
    },
    {
        path: "StudentManager",
        name: "StudentManager",
        redirect: "/StudentManager/Product",
        component: () =>
            import ("../views/StudentManager"),

        meta: { //路由原信息 一个对象
            icon: "iconfont icon-xueyuanguanli", //阿里图标的类名
            fullPath: "/StudentManager", //完整路由
            name: "学员管理",

        },
        children: [{
                path: "Dormitory",
                component: () =>
                    import ('../views/StudentManager/Dormitory.vue'),
                name: "Dormitory",
                meta: { //路由原信息 一个对象
                    icon: "iconfont icon-sushe", //阿里图标的类名
                    fullPath: "/StudentManager/Dormitory", //完整路由
                    name: "学员宿舍"
                },
            },
            {
                path: "Detail",
                component: () =>
                    import ('../views/StudentManager/Detail.vue'),
                name: "Detail",
                meta: {
                    icon: "iconfont icon-ziliao",
                    fullPath: "/StudentManager/Detail",
                    name: '学员资料'
                },
            },
            {
                path: "Product",
                name: "Product",
                component: () =>
                    import ('../views/StudentManager/Product.vue'),
                meta: { //路由原信息 一个对象
                    icon: "iconfont icon-a-guanli2", //阿里图标的类名
                    fullPath: "/StudentManager/Product", //完整路由
                    name: "学员项目管理",
                },
            },
        ]
    }

]
export default allRoutes;